{extend name="public:base" }
{block name="body"}
	<pjax>
	{Data:article name="Article" var="vo" id="$id" }
    <form action="{$Think.server.REQUEST_URI}" method="POST" class="pure-form">
        <table style="width: 100%;">
            <tr>
                <td width="150" align="right" class="ArticleCate">
                    <select name="cid" id="">
                        {Data:list name="Category" var="var" module="Article" order="id desc" limit="all"}
                        {volist name="var.list" id="cvo"}
                        <option value="{$cvo.id}">{$cvo.title}</a></option>
                        {/volist}
                        {/Data:list}
                    </select>
                </td>
                <td><input type="text" name="title" value="{$vo.title}" class="pure-input-1"/></td>
            </tr>
            <tr>
                <td colspan="2">
                    <textarea name="content" id="editor">{$vo.content}</textarea>
                </td>
            </tr>
            <tr>
                <td colspan="2"><input type="text" name="tags" id="tags_ipt" class="mt20"/></td>
            </tr>
            <tr>
                <td colspan="2" style="padding:10px 0;">
                    <label><input type="checkbox" name="adv_ckd" class="checkbox"/>高级选项</label>
					<button type="button" class="pure-button submit pure-button-primary fr">保存</button>
                    <div class="adv_body fr" style="display:none;margin-right:20px;">
                        状态：
                        <label><input type="radio" name="post_type" value="publish" checked/>立即发布</label>
                        <label><input type="radio" name="post_type" value="draft"/>草稿</label>
                        <label><input type="radio" name="post_type" value="time"/>定时发布</label>
                        <input type="text" min="{:date('Y-m-d H:i:s')}" name="post_time" class="input-3x" value="" style="display:none;"/>
                    </div>

                </td>
            </tr>
            <tr>
                <td colspan="2"></td>
            </tr>
        </table>
        <input type="hidden" name="img" value="{$vo.img}" id="cover" />
        <input type="hidden" name="id" value="{$vo.id}" />
        <input type="hidden" name="type" value="{$vo.type}" id="type_ipt" />
    </form>
    <script type="text/javascript">
        var tags='{$vo.tags}'; 
		var JS=true;
        $('#page').addClass('danlie');
    </script>
	<pjax>
{/block}
{block name="side"}{/block}